import { LOGIN_URL } from "@CORE/app-config/config";

/**
 * staticRouter(静态路由)
 */
export const staticRouter = [
	{
		path: LOGIN_URL,
		name: "login",
		component: () => import("@/views/APPS/Login/index.vue"),
		meta: {
			title: "登录",
			layout: "full"
		}
	}
];

/**
 * errorRouter(错误页面路由)
 */
export const errorRouter = [
	{
		path: "/403",
		name: "403",
		component: () => import("@/views/error/403.vue"),
		meta: {
			title: "403"
		}
	},
	{
		path: "/404",
		name: "404",
		component: () => import("@/views/error/404.vue"),
		meta: {
			title: "404"
		}
	},
	{
		path: "/500",
		name: "500",
		component: () => import("@/views/error/404.vue"),
		meta: {
			title: "500"
		}
	}
];

/**
 * notFoundRouter(找不到路由)
 */
export const notFoundRouter = {
	path: "/:pathMatch(.*)*",
	name: "notFound",
	redirect: { name: "404" }
};
